﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;

namespace Bluebunnie
{
    public class CustomTabItem: TabItem
    {
        protected override void OnSelected(System.Windows.RoutedEventArgs e)
        {
            ((TabHeader)Header)._img.Visibility = Visibility.Visible;
            base.OnSelected(e);
        }

        protected override void OnUnselected(System.Windows.RoutedEventArgs e)
        {
            ((TabHeader)Header)._img.Visibility = Visibility.Collapsed;
            base.OnUnselected(e);
        }
    }
}
